function [output]=figure_multilocalcorrelations()
numpoints = 800;
x1 = randint(1,numpoints,[20,80]);
y1 = x1.*2;
x1 = x1 + randn(1,numpoints).*2.0;
y1 = y1 + randn(1,numpoints).*5.0;
y1 = y1 - 100;
subnumpoints2 = numpoints/2;
x2 = randint(1,subnumpoints2,[35,70]);
y2 = x2.*(-8.5)+500;
x2 = x2 + randn(1,subnumpoints2).*2.0;
y2 = y2 + randn(1,subnumpoints2).*3.5;
minx = min([x1,x2]); 
maxx = max([x1,x2]);
miny = min([y1,y2]);
maxy = max([y1,y2]);
x3 = rand(1,int32(numpoints/12)).*(maxx-minx)+minx;
y3 = rand(1,int32(numpoints/12)).*(maxy-miny)+miny;
x = [x1,x2,x3];
y = [y1,y2,y3];
plot(x,y,'+', 'MarkerSize',2);

